package com.landinfo.repository;

import com.landinfo.domain.PhotoType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * Spring Data JPA repository for the DataType entity.
 */
@SuppressWarnings("unused")
@Repository
public interface PhotoTypeRepository extends PagingAndSortingRepository<PhotoType, String> {


    Page<PhotoType> findByCreateDateTimeBetween(Date startDateTime, Date endDateTime, Pageable pageable);
//    Page<PhotoType> findByPhotoLabel(String photoLable, Pageable pageable);
    //List<String> findDistinctBySpeciesName();
}